import 'package:flutter_test/flutter_test.dart';
import 'package:av_audio_session/av_audio_session.dart';
import 'package:av_audio_session/src/platform_interface/av_audio_session_platform_interface.dart';
import 'package:av_audio_session/src/method_channel/av_audio_session_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockAvAudioSessionPlatform
    with MockPlatformInterfaceMixin
    implements AvAudioSessionPlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');

  @override
  Future<bool> setAppleAudioConfiguration({required AppleAudioConfiguration configuration}) {
    // TODO: implement setAppleAudioConfiguration
    throw UnimplementedError();
  }



  
}

void main() {
  final AvAudioSessionPlatform initialPlatform = AvAudioSessionPlatform.instance;

  test('$MethodChannelAvAudioSession is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelAvAudioSession>());
  });

  test('getPlatformVersion', () async {
    // AvAudioSession avAudioSessionPlugin = AvAudioSession();
    // MockAvAudioSessionPlatform fakePlatform = MockAvAudioSessionPlatform();
    // AvAudioSessionPlatform.instance = fakePlatform;
    //
    // expect(await avAudioSessionPlugin.getPlatformVersion(), '42');
  });
}
